package com.aididi.exception;

import com.aididi.util.ApiResult;

/**
 * @Auther: zx.xu
 * @Description:
 */
public class BusinessException extends RuntimeException {

    private ApiResult apiResult;
    private String message;

    public BusinessException(){ }

    public BusinessException(String message){
        this.message = message;
    }
    public BusinessException(ApiResult apiResult) {
        this.apiResult = apiResult;
    }
    public BusinessException(String message, ApiResult apiResult) {
        this.message = message;
        this.apiResult = apiResult;
    }

    public ApiResult getApiResult() {
        return apiResult;
    }

    public void setApiResult(ApiResult apiResult) {
        this.apiResult = apiResult;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
